import java.util.ArrayList;

public class Queue extends AbstractSubject
{
	public void processQueue()
	{
		int size = Inventory.getItems().size();
		ArrayList<CustomerAccount> queuedCustomers = null;
		for(int i=0;i<size;i++)
		{
			Items tempItems = Inventory.getItems().get(i);
			if(tempItems.getCustomerQueue().size() > 0)
			{
				queuedCustomers = tempItems.getCustomerQueue();
				if(tempItems.getNumberAvailable() > 0)
				{
					for(int j=0;j<queuedCustomers.size();j++)
					{
						Notification notify = new Notification(tempItems.getCustomerQueue().get(j));
						notify.notifyCustomer();
					}
					
				}
			}
		}
		
	}
	public void retrieveItem(int custID, int itemID)
	{
		
	}
	
	public void findItem(int custID, int itemID)
	{
		
	}
	
	public void removeItem(int custID, int itemID)
	{
		
	}
}
